var express = require('express');
var router = express.Router();
var user = require('../controller/userController')

/* GET users listing. */
router.get('/', function (req, res, next) {
  res.send('respond with a resource');
});
// /api/user/signin
router.post('/signin', user.signin.bind(user))

router.post('/login', user.login.bind(user))

router.get('/logout', user.logout.bind(user))

router.get('/islogin', user.islogin.bind(user))

module.exports = router;
